package cn.home.controller;

import cn.home.entity.books;
import cn.home.mapper.BooksMapper;
import cn.home.service.BooksService;
import cn.home.service.Impl.BooksServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BooleanSupplier;

/**
 * @author 邹洪辉
 * @version 1.0
 * @date 2023/3/2 - 19:41
 */
@Controller
public class UserDetailController {

    @Secured("ROLE_look")
    @GetMapping("/index")//展示功能
    public String index(){
        return "index";
    }
    @GetMapping("/login")//登錄界面
    public String login(){
        return "login";
    }
    @GetMapping("/403")//錯誤頁面
    public String error403(){
        return "403";
    }

}
